package com.xuecheng.learning.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.learning.model.po.XcChooseCourse;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 勾新杰
 * @since 2025-02-26
 */
public interface XcChooseCourseMapper extends BaseMapper<XcChooseCourse> {

    @Select("select * from xcplus0107_learning.xc_choose_course where id=#{id} for update")
    XcChooseCourse getByIdForUpdate(Long id);
}
